package com.study.service;

import com.study.entity.Permission;
import com.study.entity.PermissionVo;

import java.util.List;

public interface PermissionService {
    int addPermission(Permission permission);

    int deletePermission(Integer resId);

    int modifyPermission(Permission permission);

    List<Permission> selectPermission();

    List<Permission> selectPermission_enable();

    List<Permission> getParentResourceInfo(Integer level);

    Permission getPermissionByResId(Integer resId);

    List<PermissionVo> selectAllPermission();

    List<PermissionVo> getCatalogIdByUserId(Integer userId);
}
